use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize)]
pub struct Todo {
    pub id: i64,
    pub title: String,
    pub active: bool,
    pub create_at: NaiveDateTime,
    pub update_at: Option<NaiveDateTime>,
}

#[derive(Debug, Deserialize)]
pub struct CreateTodo {
    pub title: String,
}

#[derive(Debug, Deserialize)]
pub struct QueryTodo {
    pub active: bool,
}

#[derive(Debug, Deserialize)]
pub struct EditTodo {
    pub active: bool,
}

